No record found with the specified ID."; return; } # set up some convenience variables $AF = ApplicationFramework::getInstance(); $User = User::getCurrentUser(); # get values for title and description FullRecordHelper::setRecord($H_Record); $FRHelper = FullRecordHelper::getInstance(); $StdFields = $FRHelper->getStdFields(); $StdValues = $FRHelper->getStdFieldValues(); $Title = $StdValues["Title"] ?? ""; $Description = $StdValues["Description"] ?? ""; # get values for URLs/files $Urls = $StdValues["Url"] ?? []; if (isset($StdValues["File"])) { $Urls = array_merge($Urls, $StdValues["File"]); } # get value (if any) for screenshot if (isset($StdValues["Screenshot"]) && count($StdValues["Screenshot"])) { $Screenshot = reset($StdValues["Screenshot"]); $ScreenshotFullImageLink = $FRHelper->getImageViewLink( $StdFields["Screenshot"], $Screenshot ); } # get field values and qualifiers $Fields = $FRHelper->getFields(); $FieldValues = $FRHelper->getFieldValues(); $FieldQualifiers = $FRHelper->getFieldQualifiers(); # build and set page title $PageTitle = strlen($Title) ? strip_tags($Title) : "Full Record"; PageTitle($PageTitle); # set up for record edit button $UserCanEdit = $H_Record->userCanEdit($User); $EditButtonLink = $FRHelper->getRecordEditLink(); # set up for comments $DisplayComments = $H_Record->getSchema()->commentsEnabled(); $CanAddComments = $User->hasPriv(PRIV_POSTCOMMENTS); $AddCommentLink = "index.php?P=AddResourceComment&RI=".$H_Record->id(); $Comments = $H_Record->comments(); # ----- DISPLAY -------------------------------------------------------------- ?>
getButtonHtml("Edit", $EditButtonLink, "Edit", "Pencil"); } foreach ($FRHelper->getButtonsForPage() as $ButtonInfo) { print $FRHelper->getButtonHtml( $ButtonInfo["Label"], $ButtonInfo["Link"], $ButtonInfo["Title"], $ButtonInfo["IconName"], $ButtonInfo["AdditionalCssClasses"], $ButtonInfo["Attributes"] ); } ?>

#

$Label) { ?>

getHtml("mv-image-thumbnail") ?>
$Value) { # (numeric indexes are field IDs, non-numeric indexes are field group names) if (is_numeric($FieldId)) { $FRHelper->displayMFieldLabelAndValueRow( $Fields[$FieldId], $Value, $FieldQualifiers[$FieldId] ); } else { $GroupValues = $Value; $GroupName = $FieldId; # generate the HTML for the fields we will display # (outputs nothing for non-viewable fields) ob_start(); foreach ($GroupValues as $GroupFieldId => $GroupValue) { $FRHelper->displayMFieldLabelAndValueRow( $Fields[$GroupFieldId], $GroupValue, $FieldQualifiers[$FieldId][$GroupFieldId] ); } $GroupHtml = ob_get_clean(); # if any fields were displayed, show the group if (strlen($GroupHtml) > 0) { ?>

###

getButtonHtml("Add Comment", $AddCommentLink, "Add Comment", "Pencil") ?>

## Comments

(no comments available yet)